<!DOCTYPE html>
<html>
  <head>
    <title></title>
	<script>
		//$(document).ready(function()
		//{
			var source = new EventSource('server_side.php');
			console.log(source);
			source.onmessage = function (event) {
				console.log(event.data);
				var obje = JSON.parse(event.data);
				console.log(obje.msg);
			};
		//});
	</script>
  </head>
	<body>
		<div>TESTsdfgfgfgdf</div>
	</body>
</html>